package cn.edu.sdjzu.xg.kcsj.security;

public class ResourceAssRole {
    private int id;
    private Role role;
    private Resource resource;

    public ResourceAssRole(int id, Role role, Resource resource) {
        this.id = id;
        this.role = role;
        this.resource = resource;
    }

    public int getId() {
        return id;
    }

    public Role getRole() {
        return role;
    }

    public Resource getResource() {
        return resource;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setRole(Role role) {
        this.role = role;
    }

    public void setResource(Resource resource) {
        this.resource = resource;
    }

    @Override
    public String toString() {
        return "ResourceAssRole{" +
                "id=" + id +
                ", role=" + role +
                ", resource=" + resource +
                '}';
    }
}
